<template>
  <div class="position">
    <span class="iconfont position-icon">&#xe619;</span>
    北京理工大学国防科技园2号楼10层
    <span class="iconfont position-notice">&#xe62b;</span>
  </div>
  <div class="search">
    <span class="iconfont">&#xe62d;</span>
    <span class="search-text">山姆会员商店优惠商品</span>
  </div>
  <div class="banner">
    <img
      class="banner-img"
      src="http://www.dell-lee.com/imgs/vue3/banner.jpg"
      alt=""
    />
  </div>
  <div class="icons">
    <div class="icons-item" v-for="(item,index) in iconsList" :key="index">
      <img
        class="icons-item-img"
        :src="item.imgName"
        alt=""
      />
      <p class="icons-item-desc">{{item.desc}}</p>
    </div>
  </div>
  <div class="gap"></div>
</template>

<script>
export default {
  name: "StaticPart",
  setup() {
    const iconsList=[
      {imgName:'http://www.dell-lee.com/imgs/vue3/超市.png',desc:'超市'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/菜市场.png',desc:'菜市场'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/水果店.png',desc:'水果店'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/鲜花.png',desc:'鲜花'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/医药健康.png',desc:'医药健康'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/家居.png',desc:'家居时尚'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/蛋糕.png',desc:'烘培蛋糕'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/签到.png',desc:'签到'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/大牌免运.png',desc:'大牌免运'},
      {imgName:'http://www.dell-lee.com/imgs/vue3/红包.png',desc:'红包套餐'},
    ];
    return {iconsList}
  }
};
</script>

<style lang="scss" scoped>
@import "../../assets/style/viriables.scss";
@import "../../assets/style/mixins.scss";
.position {
  color: #333;
  @include ellipsis;
  position: relative;
  line-height: 0.22rem;
  font-size: 0.16rem;
  padding: 0.16rem 0.24rem 0.16rem 0;
  .position-icon {
    position: relative;
    top: 0.01rem;
    margin-right: 0.08rem;
  }
  .position-notice {
    position: absolute;
    right: 0;
    top: 0.17rem;
    font-size: 0.2rem;
  }
}
.search {
  margin-bottom: 0.12rem;
  line-height: 0.32rem;
  background-color: #f5f5f5;
  color: #b7b7b7;
  border-radius: 0.16rem;
  .iconfont {
    display: inline-block;
    padding: 0 0.08rem 0 0.16rem;
    font-size: 0.16rem;
  }
  &-text {
    display: inline-block;
    font-size: 0.14rem;
  }
}
.banner {
  height: 0;
  overflow: hidden;
  padding-bottom: 25.4%;
  &-img {
    width: 100%;
  }
}
.icons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.16rem;
  &-item {
    width: 20%;
    &-img {
      display: block;
      width: 0.4rem;
      height: 0.4rem;
      margin: 0 auto;
    }
    &-desc {
      padding: 0.06rem 0 0.16rem 0;
      text-align: center;
      color: #333;
    }
  }
}
.gap {
  margin: 0 -0.18rem;
  height: 0.1rem;
  background-color: #f1f1f1;
}
</style>